package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageData;
import com.woniu.entity.dto.QueryUserDTO;
import com.woniu.entity.dto.UserLoginDTO;
import com.woniu.entity.vo.OrderByIdVO;
import com.woniu.entity.vo.UserDetailedStatisticsVO;
import com.woniu.pojo.User;
import io.swagger.models.auth.In;

import java.util.List;

/**
* @author Ma.Lei
* @description 针对表【t_user】的数据库操作Service
* @createDate 2022-12-16 23:28:28
*/
public interface UserService extends IService<User> {

    PageData listSearch(Integer currentPage, Integer pageSize, QueryUserDTO queryUserDTO);

    int disabledUser(String id, Integer status);
    User getByPhone(String phone);

    void register(UserLoginDTO loginUserDTO);

    void setLoginTime(String phone);

    User checkOldPwd(String userId, String oldPwd);

    boolean updatePwd(String userId, String newPwd);

    List<OrderByIdVO> getOrderRecordByUserId(String id);

    UserDetailedStatisticsVO getDetailedStatisticsByUserId(String id);
}
